<?php
function pfile($filename,$data,$limit=''){
  $handle=fopen($filename,'w');
  if(is_array($data)){ fwrite($handle,implode($limit,$data)); }
  else{ fwrite($handle,$data); }
  fclose($handle);
  return $filename;
}

?>
